package sysu.el.array.idx;

import sysu.el.array.ints.ArrInt;

public class ArrIdx extends ArrInt{

	public ArrIdx(int num) {
		super(num);
	}
	
	protected ArrIdx(){
	}
	
	public static ArrIdx wrap(ArrInt a){
		ArrIdx aim = new ArrIdxMan();
		aim.counter = a.counter;
		aim.list = a.list;
		return aim;
	}
	
	public static ArrIdx wrap(int[] a){
		ArrIdx aim = new ArrIdxMan();
		aim.counter = a.length;
		aim.list = a;
		return aim;
	}
}
